/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.kohan.battleship;

/**
 *
 * @author STano
 */
public abstract class Player {
    private String name;
    private Board board;
    private String color;
    private boolean win;
    
    public Player(String name) {
        this.name = name;
        this.color = "blue";
        this.win = false;
        this.board = new Board();
    }
    
    public Player(String name, String color) {
        this(name);
        this.color = color;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setBoard(Board board) {
        this.board = board;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Board getBoard() {
        return board;
    }

    public String getColor() {
        return color;
    }

    public String getName() {
        return name;
    }

    public boolean isWin() {
        return win;
    }
    
    public abstract boolean addShip(int x, int y);
    public abstract int[] setCoordinates();
    public abstract boolean hitShip(Board board);
    
}
